Struct kernel::network::scheme::NetworkResource [] [src]

pub struct NetworkResource {
    pub nic: *mut NetworkScheme,
    pub ptr: *mut NetworkResource,
    pub inbound: Queue<Vec<u8>>,
    pub outbound: Queue<Vec<u8>>,
}

Fields

nic
ptr
inbound
outbound

Methods

impl NetworkResource

fn new(nic: *mut NetworkScheme) -> Box<Self>

Trait Implementations

impl Resource for NetworkResource

fn dup(&self) -> Option<Box<Resource>>

fn url(&self) -> URL

fn read(&mut self, buf: &mut [u8]) -> Option<usize>

fn read_to_end(&mut self, vec: &mut Vec<u8>) -> Option<usize>

fn write(&mut self, buf: &[u8]) -> Option<usize>

fn seek(&mut self, _: ResourceSeek) -> Option<usize>

fn sync(&mut self) -> bool

fn truncate(&mut self, len: usize) -> bool

impl Drop for NetworkResource

fn drop(&mut self)