pub enum AddConnectionError<C: Connection> {
NoAvailablePeers,
FailedToInitializeConnection(C::Error),
}
Available on crate feature
connected
only.Expand description
Errors for connected::Host::add_connection
.
Variants§
NoAvailablePeers
Failed to add connection because there were no available ENet connection slots.
FailedToInitializeConnection(C::Error)
Failed to initialize the connection (connected::Connection::init
failed).
Trait Implementations§
Source§impl<C: Clone + Connection> Clone for AddConnectionError<C>
impl<C: Clone + Connection> Clone for AddConnectionError<C>
Source§fn clone(&self) -> AddConnectionError<C>
fn clone(&self) -> AddConnectionError<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C: Connection> Debug for AddConnectionError<C>
impl<C: Connection> Debug for AddConnectionError<C>
Source§impl<C: Connection> Display for AddConnectionError<C>
impl<C: Connection> Display for AddConnectionError<C>
Source§impl<C: PartialEq + Connection> PartialEq for AddConnectionError<C>
impl<C: PartialEq + Connection> PartialEq for AddConnectionError<C>
impl<C: Copy + Connection> Copy for AddConnectionError<C>
impl<C: Eq + Connection> Eq for AddConnectionError<C>
impl<C: Connection> StructuralPartialEq for AddConnectionError<C>
Auto Trait Implementations§
impl<C> Freeze for AddConnectionError<C>
impl<C> RefUnwindSafe for AddConnectionError<C>
impl<C> Send for AddConnectionError<C>
impl<C> Sync for AddConnectionError<C>
impl<C> Unpin for AddConnectionError<C>
impl<C> UnwindSafe for AddConnectionError<C>
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