diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2021-11-22 12:04:26 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2021-11-22 12:04:26 +0300 |
commit | 86f422592b160f9aff2eb58c5ab05a0612c152e5 (patch) | |
tree | cd15a1e6f8a9f5344e50bc4f450d23dc614579f8 /net | |
parent | 651ea7de5ff0947ed3e6641a65e9b05d1c36a74a (diff) |
Update for `glib::Enum` / `glib::Boxed` / `glib::flags!` macro renames
Diffstat (limited to 'net')
-rw-r--r-- | net/reqwest/src/reqwesthttpsrc/imp.rs | 4 | ||||
-rw-r--r-- | net/rusoto/src/aws_transcriber/mod.rs | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/net/reqwest/src/reqwesthttpsrc/imp.rs b/net/reqwest/src/reqwesthttpsrc/imp.rs index bf04d096..1af019be 100644 --- a/net/reqwest/src/reqwesthttpsrc/imp.rs +++ b/net/reqwest/src/reqwesthttpsrc/imp.rs @@ -112,8 +112,8 @@ fn proxy_from_str(s: Option<String>) -> Result<Option<String>, glib::Error> { const REQWEST_CLIENT_CONTEXT: &str = "gst.reqwest.client"; -#[derive(Clone, Debug, glib::GBoxed)] -#[gboxed(type_name = "ReqwestClientContext")] +#[derive(Clone, Debug, glib::Boxed)] +#[boxed_type(name = "ReqwestClientContext")] struct ClientContext(Arc<ClientContextInner>); #[derive(Debug)] diff --git a/net/rusoto/src/aws_transcriber/mod.rs b/net/rusoto/src/aws_transcriber/mod.rs index 7907d29c..fc44742a 100644 --- a/net/rusoto/src/aws_transcriber/mod.rs +++ b/net/rusoto/src/aws_transcriber/mod.rs @@ -21,18 +21,18 @@ use gst::prelude::*; mod imp; mod packet; -#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::GEnum)] +#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy, glib::Enum)] #[repr(u32)] -#[genum(type_name = "GstAwsTranscriberResultStability")] +#[enum_type(name = "GstAwsTranscriberResultStability")] pub enum AwsTranscriberResultStability { - #[genum(name = "High: stabilize results as fast as possible", nick = "high")] + #[enum_value(name = "High: stabilize results as fast as possible", nick = "high")] High = 0, - #[genum( + #[enum_value( name = "Medium: balance between stability and accuracy", nick = "medium" )] Medium = 1, - #[genum( + #[enum_value( name = "Low: relatively less stable partial transcription results with higher accuracy", nick = "low" )] |