pub struct SharingMode(/* private fields */);Expand description
Implementations§
Source§impl SharingMode
impl SharingMode
pub const EXCLUSIVE: SharingMode
pub const CONCURRENT: SharingMode
pub const fn from_raw(value: i32) -> SharingMode
pub const fn as_raw(self) -> i32
Trait Implementations§
Source§impl Clone for SharingMode
impl Clone for SharingMode
Source§fn clone(&self) -> SharingMode
fn clone(&self) -> SharingMode
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 moreSource§impl Debug for SharingMode
impl Debug for SharingMode
Source§impl Default for SharingMode
impl Default for SharingMode
Source§fn default() -> SharingMode
fn default() -> SharingMode
Returns the “default value” for a type. Read more
Source§impl Display for SharingMode
impl Display for SharingMode
Source§impl Error for SharingMode
impl Error for SharingMode
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for SharingMode
impl Hash for SharingMode
Source§impl Ord for SharingMode
impl Ord for SharingMode
Source§fn cmp(&self, other: &SharingMode) -> Ordering
fn cmp(&self, other: &SharingMode) -> Ordering
1.21.0 · 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 SharingMode
impl PartialEq for SharingMode
Source§impl PartialOrd for SharingMode
impl PartialOrd for SharingMode
impl Copy for SharingMode
impl Eq for SharingMode
impl StructuralPartialEq for SharingMode
Auto Trait Implementations§
impl Freeze for SharingMode
impl RefUnwindSafe for SharingMode
impl Send for SharingMode
impl Sync for SharingMode
impl Unpin for SharingMode
impl UnsafeUnpin for SharingMode
impl UnwindSafe for SharingMode
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