pub struct SessionList<CState: Clone> { /* private fields */ }
Implementations§
Source§impl<CState: Clone> SessionList<CState>
impl<CState: Clone> SessionList<CState>
pub fn new(config_manager: ConfigManager) -> Self
pub fn add_miner(&self, addr: SocketAddr, miner: Session<CState>)
pub fn remove_miner(&self, addr: SocketAddr)
pub fn get_all_miners(&self) -> Vec<Session<CState>>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn shutdown_msg(&self, msg: Option<Buffer>) -> Result<()>
pub fn shutdown(&self)
Trait Implementations§
Source§impl<CState: Clone + Clone> Clone for SessionList<CState>
impl<CState: Clone + Clone> Clone for SessionList<CState>
Source§fn clone(&self) -> SessionList<CState>
fn clone(&self) -> SessionList<CState>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<CState> Freeze for SessionList<CState>
impl<CState> !RefUnwindSafe for SessionList<CState>
impl<CState> Send for SessionList<CState>
impl<CState> Sync for SessionList<CState>
impl<CState> Unpin for SessionList<CState>
impl<CState> !UnwindSafe for SessionList<CState>
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