pub struct ConnectionLayerHostCodec {
pub connection_ids: FreeList<u8>,
pub connections: HashMap<u8, HostConnection>,
pub random: Box<dyn SecureRandom>,
}
Fields§
§connection_ids: FreeList<u8>
§connections: HashMap<u8, HostConnection>
§random: Box<dyn SecureRandom>
Implementations§
Source§impl ConnectionLayerHostCodec
impl ConnectionLayerHostCodec
pub fn new(random: Box<dyn SecureRandom>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionLayerHostCodec
impl !RefUnwindSafe for ConnectionLayerHostCodec
impl !Send for ConnectionLayerHostCodec
impl !Sync for ConnectionLayerHostCodec
impl Unpin for ConnectionLayerHostCodec
impl !UnwindSafe for ConnectionLayerHostCodec
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