[−][src]Struct plex_api::Server
Methods
impl Server
[src]
pub async fn connect<U: IntoUrl + AsStr + Send>(url: U) -> Result<Self>
[src]
Establish a connection with the server server by provided url.
This call will fail if anonymous access is denied.
pub async fn connect_auth<'_, U: IntoUrl + AsStr + Send>(
url: U,
auth_token: &'_ str
) -> Result<Self>
[src]
url: U,
auth_token: &'_ str
) -> Result<Self>
Establish a connection with the server server by provided url and authentication token
.
impl Server
[src]
pub async fn get_settings<'_>(&'_ self) -> Result<SettingsMediaContainer>
[src]
pub async fn update_settings<'_, '_>(
&'_ self,
settings: &'_ SettingsMediaContainer
) -> Result<()>
[src]
&'_ self,
settings: &'_ SettingsMediaContainer
) -> Result<()>
Trait Implementations
impl Debug for Server
[src]
impl<'de> Deserialize<'de> for Server
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasMyPlexToken for Server
[src]
fn get_auth_token(&self) -> &str
[src]
Returns authentication token for current server.
fn set_auth_token(&mut self, auth_token: &str)
[src]
Sets authentication token for current server.
Auto Trait Implementations
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,