Enum relay_common::Scheme
pub enum Scheme {
Http,
Https,
}
Expand description
Represents the scheme of an url http/https.
This holds schemes that are supported by sentry and relays.
Variants§
Implementations§
§impl Scheme
impl Scheme
pub fn default_port(self) -> u16
pub fn default_port(self) -> u16
Returns the default port for this scheme.
Trait Implementations§
§impl Ord for Scheme
impl Ord for Scheme
§impl PartialOrd for Scheme
impl PartialOrd for Scheme
impl Copy for Scheme
impl Eq for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Freeze for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnwindSafe for Scheme
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)