#[repr(C)]pub struct Socket<S, T, R, M>where
S: Storage<Response<T>>,
T: Serialize + Clone + DeserializeOwned + 'static,
R: ScopedRawMutex + 'static,
M: InterfaceManager + 'static,{ /* private fields */ }Implementations§
Source§impl<S, T, R, M> Socket<S, T, R, M>where
S: Storage<Response<T>>,
T: Serialize + Clone + DeserializeOwned + 'static,
R: ScopedRawMutex + 'static,
M: InterfaceManager + 'static,
impl<S, T, R, M> Socket<S, T, R, M>where
S: Storage<Response<T>>,
T: Serialize + Clone + DeserializeOwned + 'static,
R: ScopedRawMutex + 'static,
M: InterfaceManager + 'static,
pub const fn new( net: &'static NetStack<R, M>, key: Key, attrs: Attributes, sto: S, ) -> Self
pub fn attach<'a>(self: Pin<&'a mut Self>) -> SocketHdl<'a, S, T, R, M>
pub fn attach_broadcast<'a>( self: Pin<&'a mut Self>, ) -> SocketHdl<'a, S, T, R, M>
pub fn stack(&self) -> &'static NetStack<R, M>
Trait Implementations§
Source§impl<S, T, R, M> Drop for Socket<S, T, R, M>where
S: Storage<Response<T>>,
T: Serialize + Clone + DeserializeOwned + 'static,
R: ScopedRawMutex + 'static,
M: InterfaceManager + 'static,
impl<S, T, R, M> Drop for Socket<S, T, R, M>where
S: Storage<Response<T>>,
T: Serialize + Clone + DeserializeOwned + 'static,
R: ScopedRawMutex + 'static,
M: InterfaceManager + 'static,
Auto Trait Implementations§
impl<S, T, R, M> !Freeze for Socket<S, T, R, M>
impl<S, T, R, M> !RefUnwindSafe for Socket<S, T, R, M>
impl<S, T, R, M> Send for Socket<S, T, R, M>
impl<S, T, R, M> !Sync for Socket<S, T, R, M>
impl<S, T, R, M> !Unpin for Socket<S, T, R, M>
impl<S, T, R, M> !UnwindSafe for Socket<S, T, R, M>
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