pub struct DatabasePort(/* private fields */);Expand description
A database network port.
Implementations§
Source§impl DatabasePort
impl DatabasePort
Sourcepub const fn new(port: u16) -> Result<DatabasePort, DatabaseUrlError>
pub const fn new(port: u16) -> Result<DatabasePort, DatabaseUrlError>
Trait Implementations§
Source§impl Clone for DatabasePort
impl Clone for DatabasePort
Source§fn clone(&self) -> DatabasePort
fn clone(&self) -> DatabasePort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabasePort
impl Debug for DatabasePort
Source§impl Display for DatabasePort
impl Display for DatabasePort
Source§impl Hash for DatabasePort
impl Hash for DatabasePort
Source§impl Ord for DatabasePort
impl Ord for DatabasePort
Source§fn cmp(&self, other: &DatabasePort) -> Ordering
fn cmp(&self, other: &DatabasePort) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DatabasePort
impl PartialEq for DatabasePort
Source§fn eq(&self, other: &DatabasePort) -> bool
fn eq(&self, other: &DatabasePort) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabasePort
impl PartialOrd for DatabasePort
impl Copy for DatabasePort
impl Eq for DatabasePort
impl StructuralPartialEq for DatabasePort
Auto Trait Implementations§
impl Freeze for DatabasePort
impl RefUnwindSafe for DatabasePort
impl Send for DatabasePort
impl Sync for DatabasePort
impl Unpin for DatabasePort
impl UnsafeUnpin for DatabasePort
impl UnwindSafe for DatabasePort
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