pub struct EmblyCtx {
pub address_map: BidirectionalMap<i32, u64>,
pub address_count: i32,
pub address: u64,
/* private fields */
}
Fields§
§address_map: BidirectionalMap<i32, u64>
§address_count: i32
§address: u64
Implementations§
Source§impl EmblyCtx
impl EmblyCtx
pub fn new( receiver: Receiver<Message>, stream_writer: UnixStream, address: u64, parent_address: u64, ) -> Self
pub fn write(&mut self, id: i32, buf: &[u8]) -> Result<usize>
pub fn read(&mut self, id: i32, buf: &mut [u8]) -> Result<usize>
pub fn events_limited( &mut self, timeout: Option<Duration>, limit: usize, ) -> Result<Vec<i32>>
pub fn events(&mut self, timeout: Option<Duration>) -> Result<Vec<i32>>
pub fn spawn(&mut self, name: &str) -> Result<i32>
Auto Trait Implementations§
impl Freeze for EmblyCtx
impl RefUnwindSafe for EmblyCtx
impl Send for EmblyCtx
impl !Sync for EmblyCtx
impl Unpin for EmblyCtx
impl UnwindSafe for EmblyCtx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more