Struct cyfs_util::gateway::GatewayRegister
source · [−]pub struct GatewayRegister {
pub id: String,
pub server_type: String,
pub value: String,
pub host: Url,
}Fields
id: Stringserver_type: Stringvalue: Stringhost: UrlImplementations
sourceimpl GatewayRegister
impl GatewayRegister
pub fn new(id: String, server_type: String) -> GatewayRegister
pub fn register(
id: String,
server_type: String,
value: String
) -> Result<(), BuckyError>
pub async fn unregister(
id: String,
server_type: String
) -> Result<(), BuckyError>
pub async fn run_register(self)
Auto Trait Implementations
impl RefUnwindSafe for GatewayRegister
impl Send for GatewayRegister
impl Sync for GatewayRegister
impl Unpin for GatewayRegister
impl UnwindSafe for GatewayRegister
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more