Struct Notify
pub struct Notify {
pub(crate) client_access_token: String,
pub(crate) client_mode: ClientMode,
pub(crate) region: String,
pub(crate) services: Vec<String>,
}Expand description
Information to initiate the remote tunnel.
Fields§
§client_access_token: StringAWS tunnel access token.
client_mode: ClientModeTunnel side.
region: StringAWS region.
services: Vec<String>Services to serve.
Implementations§
§impl Notify
impl Notify
pub fn new(
client_access_token: impl Into<String>,
client_mode: ClientMode,
region: impl Into<String>,
services: Vec<String>,
) -> Self
pub fn new( client_access_token: impl Into<String>, client_mode: ClientMode, region: impl Into<String>, services: Vec<String>, ) -> Self
Creates new Notify object.
pub const fn client_mode(&self) -> &ClientMode
pub const fn client_mode(&self) -> &ClientMode
Says on which side of the tunnel the client is.
Trait Implementations§
§impl<'de> Deserialize<'de> for Notify
impl<'de> Deserialize<'de> for Notify
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Notify
impl RefUnwindSafe for Notify
impl Send for Notify
impl Sync for Notify
impl Unpin for Notify
impl UnwindSafe for Notify
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