#[repr(C)]pub struct UserData<'o> {
pub pkt: Option<&'o dyn NetPkt>,
pub argv: Option<&'o [&'o [u8]]>,
}
Expand description
User config for adding common scopes
Fields§
§pkt: Option<&'o dyn NetPkt>
Set a packet in scope e.g. “[hash:str] in group [group:str]”
argv: Option<&'o [&'o [u8]]>
Add the argv scope e.g. “[0] and [1]”
Trait Implementations§
impl<'o> Copy for UserData<'o>
Auto Trait Implementations§
impl<'o> !RefUnwindSafe for UserData<'o>
impl<'o> !Send for UserData<'o>
impl<'o> !Sync for UserData<'o>
impl<'o> Unpin for UserData<'o>
impl<'o> !UnwindSafe for UserData<'o>
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