[−][src]Struct openstack::network::Router
Structure representing a single router.
Implementations
impl Router
[src]
pub fn admin_state_up(&self) -> bool
[src]
The administrative state of the router.
pub fn set_admin_state_up(&mut self, value: bool)
[src]
Set the administrative state of the router.
pub fn with_admin_state_up(self, value: bool) -> Self
[src]
Set the administrative state of the router.
pub fn availability_zone_hints(&self) -> &Vec<String>
[src]
Availability zone candidates for the router
pub fn availability_zones(&self) -> &Vec<String>
[src]
The availability zones for the router (if available).
pub fn conntrack_helpers(&self) -> &Vec<ConntrackHelper>
[src]
The associated conntrack helper resources for the router.
pub fn created_at(&self) -> Option<DateTime<FixedOffset>>
[src]
Creation data and time (if available).
pub fn description(&self) -> &Option<String>
[src]
Router description.
pub fn set_description<S: Into<String>>(&mut self, value: S)
[src]
Update the description.
pub fn with_description<S: Into<String>>(self, value: S) -> Self
[src]
Update the description.
pub fn distributed(&self) -> Option<bool>
[src]
Indicates if the router is distributed.
pub fn set_distributed(&mut self, value: bool)
[src]
Update whether this is a distributed router.
pub fn with_distributed(self, value: bool) -> Self
[src]
Update whether this is a distributed router.
pub fn external_gateway(&self) -> &Option<ExternalGateway>
[src]
External gateway information.
pub fn external_network(&self) -> Result<Network>
[src]
Get external network associated with this router.
Fails if external gateway information is not provided.
pub fn set_external_gateway(&mut self, value: ExternalGateway)
[src]
Update the external gateway information.
pub fn with_external_gateway(self, value: ExternalGateway) -> Self
[src]
Update the external gateway information.
pub fn flavor_id(&self) -> &Option<String>
[src]
Flavor associated with router.
pub fn ha(&self) -> Option<bool>
[src]
Indicates if the router is highly-available.
pub fn set_ha(&mut self, value: bool)
[src]
Update whether this is a highly-available router.
pub fn with_ha(self, value: bool) -> Self
[src]
Update whether this is a highly-available router.
pub fn id(&self) -> &String
[src]
Unique ID.
pub fn name(&self) -> &Option<String>
[src]
Router name.
pub fn set_name<S: Into<String>>(&mut self, value: S)
[src]
Update the name.
pub fn with_name<S: Into<String>>(self, value: S) -> Self
[src]
Update the name.
pub fn project_id(&self) -> &Option<String>
[src]
Project ID.
pub fn revision_number(&self) -> Option<u32>
[src]
Revision number.
pub fn routes(&self) -> &Option<Vec<HostRoute>>
[src]
Extra routes.
pub fn set_routes(&mut self, value: Vec<HostRoute>)
[src]
Update extra routes.
pub fn with_routes(self, value: Vec<HostRoute>) -> Self
[src]
Update extra routes.
pub fn service_type_id(&self) -> &Option<String>
[src]
ID of the service type associated to the router.
pub fn status(&self) -> RouterStatus
[src]
Status of the router.
pub fn tags(&self) -> &Option<Vec<String>>
[src]
Tags.
pub fn updated_at(&self) -> Option<DateTime<FixedOffset>>
[src]
Last update data and time (if available).
pub fn delete(self) -> Result<DeletionWaiter<Router>>
[src]
Delete the router.
pub fn is_dirty(&self) -> bool
[src]
Whether the router is modified.
pub fn save(&mut self) -> Result<()>
[src]
Save the changes to the router.
pub fn add_router_interface(
&mut self,
subnet_id: Option<&String>,
port_id: Option<&String>
) -> Result<()>
[src]
&mut self,
subnet_id: Option<&String>,
port_id: Option<&String>
) -> Result<()>
Add an interface to the router.
pub fn remove_router_interface(
&mut self,
subnet_id: Option<&String>,
port_id: Option<&String>
) -> Result<()>
[src]
&mut self,
subnet_id: Option<&String>,
port_id: Option<&String>
) -> Result<()>
Remove an interface from the router.
pub fn add_extra_routes(&mut self, routes: Vec<HostRoute>) -> Result<()>
[src]
Add route to router.
pub fn remove_extra_routes(&mut self, routes: Vec<HostRoute>) -> Result<()>
[src]
Remove route from router.
Trait Implementations
impl Clone for Router
[src]
impl Debug for Router
[src]
impl From<Router> for RouterRef
[src]
impl Refresh for Router
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Router
impl !Send for Router
impl !Sync for Router
impl Unpin for Router
impl !UnwindSafe for Router
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,